import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
		rou:{},
		torou:{},
		fromrou:{},
		token:false,
		beforejumpname:''
  },
  mutations: {
		SET_ROU: (state, rout) => {
      state.rou = rout
    },
		SET_TOROU:(state, torou)=>{
			state.torou = torou
		},
		SET_FROMROU:(state, fromrou)=>{
			state.fromrou = fromrou
		},
		SET_TOKEN:(state, token) => {
			localStorage.tokken = token
      state.token = token
    },
		SET_BEFOREJUMPNAME:(state, beforejumpname)=>{
			state.beforejumpname = beforejumpname
		}
  },
  actions: {
  },
  modules: {
  }
})
